package com.layui.result;

import lombok.Getter;

/**
 * 通用状态信息
 * 
 * @author 小懒虫
 * @date 2018/10/15
 */
@Getter
public enum ResultEnum {

	SUCCESS(200, "成功"), 
	ERROR(400, "错误"), 
	FAILURE(300, "失败");

	private Integer code;

	private String message;

	ResultEnum(Integer code, String message) {
		this.code = code;
		this.message = message;
	}
}
